//
//  CoreDataManager.h
//  CoreData
//
//  Created by penngshi on 16/1/8.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
@interface CoreDataManager : NSObject
//被管理对象上下文 (数据管理器)
@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
//数据模型器
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
//数据连接器
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;
// 存储方法
- (void)saveContext;
//沙盒路径
- (NSURL *)applicationDocumentsDirectory;
+ (instancetype)shareCoreDataManager;
@end
